﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace Managistics.Model.Mappings
{
    public class ContactPersonMap : ClassMap<ContactPerson>
    {

        public ContactPersonMap()
        {
            Schema(Constants._tblSchema);
            Table(Constants._tblContactPerson);
            LazyLoad();

            Id(x => x.Contactid).GeneratedBy.Assigned().Column("ContactID");

            Map(x => x.Name).Column("ContactName").Length(4000);
        }
    }
}
